/****************************************************************************/    
/* NAME:           led.h                                                    */    
/* PURPOSE:        Leds pwm management                                      */    
/* CREATED_BY:     Didsau                                                   */    
/* CREATION_DATE:  18/08/2012                                               */    
/************************************** (C) Copyright 2012 AquaLink *********/  

#include "main.h"

/* Apply a global brightness on all LED, 75.0% */
#define GLOBAL_BRIGHTNESS                  (750)    

typedef enum
{
    WHITE_LED,  
    BLUE_LED,
    RGB_LED         // Futur develepment :)
}LED_COLOR_T;

typedef struct
{
    uint8_t          id;                   /* id of light                              */
    uint8_t          time_start_HH;        /* Hours start                              */
    uint8_t          time_start_MM;        /* Minute start                             */
    uint8_t          time_stop_HH;         /* Hours stop                               */
    uint8_t          time_stop_MM;         /* Minute stop                              */
    uint16_t         led_brigtness;        /* max pwm 1000 -> 100%                     */
    bool             led_dimming_direction;/* Mode FALSE : Slope UP, TRUE : Slope DOWN */
    bool             forced;               /* if TRUE, active led with max value       */
    uint8_t          OutputName;           /* Name of out put                          */
    LED_COLOR_T      led_color;            /* Color of led for different curve         */
}Led_def_t;

/**
  * @brief  Main function of leds module.
  * @param  none
  * @retval None
  */
void vTaskCTRL_INTERPOLATED_LEDS_PWM();


